var mydiv = document.createElement("div")
mydiv.id = 'backHome'
mydiv.style.cssText = "background-color: #D9543B;color: #FFFFFF;width: 3rem;height: 3rem;line-height: 1.2rem;text-align: center;border-radius: 50%;position: absolute;right: 0;bottom: 0;font-size: 0.8rem;padding-top: 6px;box-sizing: border-box;"; 
var myindiv = document.createElement("div")
myindiv.innerHTML = '回到'
var myindiv2 = document.createElement("div")
myindiv2.innerHTML = '首页'
mydiv.appendChild(myindiv)
mydiv.appendChild(myindiv2)
mydiv.addEventListener("click", Foo);
function Foo(){
    window.location.href = '/mobile/agent/backhome'
}

document.body.appendChild(mydiv)
new Inertia(document.getElementById('backHome'));